﻿using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Core.Services;
using TL_Cloud.Models.BookShop;

namespace TL_Cloud.ViewModels.BookShop.BaseStudent
{
    public class BaseStudentPropertyMapping : PropertyMapping<BaseStudentResource, Base_StudentInfo>
    {
        public BaseStudentPropertyMapping() : base(
          new Dictionary<string, List<MappedProperty>>(StringComparer.OrdinalIgnoreCase)
          {
              [nameof(BaseStudentResource.StudentId)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Base_StudentInfo.StudentId),Revert=false }
              },
              [nameof(BaseStudentResource.StudentCode)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Base_StudentInfo.StudentCode),Revert=false }
              },
              [nameof(BaseStudentResource.StudentName)] = new List<MappedProperty>
              {
                    new MappedProperty{ Name=nameof(Base_StudentInfo.StudentName),Revert=false }
              },
              [nameof(BaseStudentResource.Email)] = new List<MappedProperty>
              {
                   new MappedProperty{ Name=nameof(Base_StudentInfo.Email),Revert=false }
              },

              [nameof(BaseStudentResource.HeadIcon)] = new List<MappedProperty>
              {
                   new MappedProperty{ Name=nameof(Base_StudentInfo.HeadIcon),Revert=false }
              },

              [nameof(BaseStudentResource.Qq)] = new List<MappedProperty>
              {
                   new MappedProperty{ Name=nameof(Base_StudentInfo.Qq),Revert=false }
              },

              [nameof(BaseStudentResource.Telephone)] = new List<MappedProperty>
              {
                   new MappedProperty{ Name=nameof(Base_StudentInfo.Telephone),Revert=false }
              },

              [nameof(BaseStudentResource.WeiXinCode)] = new List<MappedProperty>
              {
                   new MappedProperty{ Name=nameof(Base_StudentInfo.WeiXinCode),Revert=false }
              },

          })
        {
        }
    }
}
